
 
 F u n c t i o n :   s e t D i s a b l e d ( d o m E l e m e n t O r C S S S e l e c t o r ,   b o o l D i s a b l e S t a t e ) 
 
 
 
 D e s c r i p t i o n :   S e t s   t h e   d i s a b l e d   s t a t e   o f   a n y   n a t i v e   o r   s i m u l a t e d   a c t i v e   e l e m e n t . 
 
 
 
 R e t u r n s :   O r i g i n a l   O b j e c t ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 N o t e :   M e a n t   t o   a c c o m p a n y   t h e   i s D i s a b l e d ( )   a n d   u p d a t e D i s a b l e d ( )   f u n c t i o n s .   W h e n   a   D C   o b j e c t   i s   p a s s e d   a s   t h e   f i r s t   p a r a m e t e r ,   t h e   d i s a b l e d   s t a t e   o f   i t s   t r i g g e r i n g   e l e m e n t   w i l l   b e   s e t   i n   a d d i t i o n   t o   t h e   i n t e r n a l   d i s a b l e d   s t a t e   o f   t h e   D C   o b j e c t .   A l l   n a t i v e   f o r m   f i e l d s   t h a t   s u p p o r t   t h e   d i s a b l e d   p r o p e r t y   w i l l   h a v e   t h e   d i s a b l e d   p r o p e r t y   s e t   a c c o r d i n g l y ,   a n d   a l l   l i n k s   a n d   s i m u l a t e d   a c t i v e   e l e m e n t s   w i l l   i n s t e a d   h a v e   t h e   a r i a - d i s a b l e d   a t t r i b u t e   s e t   a c c o r d i n g l y .   T h e   s p e c i f i e d   e l e m e n t s   w i l l   a l s o   b e   t r a c k e d   i n t e r n a l l y .   W h e n   a   l i n k   o r   s i m u l a t e d   a c t i v e   e l e m e n t   i s   d i s a b l e d ,   t h e   s p e c i f i e d   e l e m e n t s   w i l l   c o n t i n u e   t o   r e c e i v e   f o c u s . 
 
 
 
 E x a m p l e : 
 
 
 
 / /   T h e   f i r s t   p a r a m e t e r   m a y   b e   s e t   t o   a   D O M   n o d e ,   a n   a r r a y   o f   D O M   n o d e s ,   a   C S S   s e l e c t o r ,   o r   a   D C   o b j e c t . 
 
 
 
 $ A . s e t D i s a b l e d ( d o m E l e m e n t ,   t r u e ) ; 
 
 
 
 / /   O r 
 
 
 
 $ A . s e t D i s a b l e d ( d o m E l e m e n t ,   f a l s e ) ; 
 
 